//
//  SVProgressHUD+Debug.swift
//  HinsLive
//
//  Created by haoxian on 2019/4/21.
//  Copyright © 2019 Hins. All rights reserved.
//

import Foundation
import SVProgressHUD


extension SVProgressHUD {
    static func showDebugMsg(_ msg: String) {
        #if DEBUG
        DispatchQueue.safeMainAsync {
            SVProgressHUD.showInfo(withStatus: msg)
            DispatchQueue.mainDelay(1.5) {
                SVProgressHUD.dismiss()
            }
        }
        #endif
    }
}
